package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PDuwutypeMapper;
import com.haima.ziliao.domain.PDuwutype;
import com.haima.ziliao.service.IPDuwutypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 读物分类Service业务层处理
 * 
 * @author hima
 * @date 2024-11-14
 */
@Service
public class PDuwutypeServiceImpl extends ServiceImpl<PDuwutypeMapper, PDuwutype> implements IPDuwutypeService
{
    @Autowired
    private PDuwutypeMapper pDuwutypeMapper;

    /**
     * 查询读物分类
     * 
     * @param id 读物分类主键
     * @return 读物分类
     */
    @Override
    public PDuwutype selectPDuwutypeById(Long id)
    {
        return pDuwutypeMapper.selectPDuwutypeById(id);
    }

    /**
     * 查询读物分类列表
     * 
     * @param pDuwutype 读物分类
     * @return 读物分类
     */
    @Override
    public List<PDuwutype> selectPDuwutypeList(PDuwutype pDuwutype)
    {
        return pDuwutypeMapper.selectPDuwutypeList(pDuwutype);
    }

    /**
     * 新增读物分类
     * 
     * @param pDuwutype 读物分类
     * @return 结果
     */
    @Override
    public int insertPDuwutype(PDuwutype pDuwutype)
    {
        return pDuwutypeMapper.insertPDuwutype(pDuwutype);
    }

    /**
     * 修改读物分类
     * 
     * @param pDuwutype 读物分类
     * @return 结果
     */
    @Override
    public int updatePDuwutype(PDuwutype pDuwutype)
    {
        return pDuwutypeMapper.updatePDuwutype(pDuwutype);
    }

    /**
     * 批量删除读物分类
     * 
     * @param ids 需要删除的读物分类主键
     * @return 结果
     */
    @Override
    public int deletePDuwutypeByIds(Long[] ids)
    {
        return pDuwutypeMapper.deletePDuwutypeByIds(ids);
    }

    /**
     * 删除读物分类信息
     * 
     * @param id 读物分类主键
     * @return 结果
     */
    @Override
    public int deletePDuwutypeById(Long id)
    {
        return pDuwutypeMapper.deletePDuwutypeById(id);
    }
}
